package com.example.demo.mapper;

import com.example.demo.entity.ChineseIndex;
import com.example.demo.vo.ChineseIndexVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ChineseIndexMapper {

    int insertChineseIndex(@Param("chineseIndex") ChineseIndex chineseIndex);

    boolean deleteChineseIndex(@Param("id") String id );

    int updateChineseIndex(@Param("chineseIndex") ChineseIndex chineseIndex);

    List<ChineseIndexVo> selectChineseIndexList(@Param("realPageNum") Integer realPageNum, @Param("pageSize")Integer pageSize);

    boolean selectById(@Param("id") String id);

}
